/*
 * Bomb.h
 */

#ifndef BOMB_H_
#define BOMB_H_

#include "Model3D.h"
#include "ObjModel.h"
#include "Level.h"
#include "Explosion.h"

class Bomb : public Model3D{
public:
	Bomb(Level *level);
	~Bomb();
	void initializeGL(ObjModel *bomb[], GLuint *texture);
	void renderGL();
	void update(float milis);
	bool isActive();
	void activate(int x, int y, int size);
	Vertex getPosition();
private:
	Level *level;
	ObjModel *bomb[6];
	Explosion *explosion;
	float pos_x, pos_y, pos_z;	// coordinates of the bomb
	float milisElapsed;
	bool bombActive; // active bomb models or explosion
	bool deactivated; // no more bomb models active just explosion
};

#endif /* BOMB_H_ */
